<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Carte mère: Référence du fichier src/trames.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="main.html"><span>Page&#160;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&#160;associées</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Portée&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<h1>Référence du fichier src/trames.h</h1>  </div>
</div>
<div class="contents">

<p><a href="trames_8h_source.html">Aller au code source de ce fichier.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Macros</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="trames_8h.html#aa34f3db65e8e2285027433f0dec98a0d">DEBUT_TRAME</a>&#160;&#160;&#160;'@'</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Octet de départ d'une trame (carte capteurs ou communication XBee)  <a href="#aa34f3db65e8e2285027433f0dec98a0d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="trames_8h.html#aff03fe72d1cd7da38964e02fdc4f7551">TYPE_TRAME_CAPTEURS</a>&#160;&#160;&#160;'#'</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Octet de type d'une trame capteurs.  <a href="#aff03fe72d1cd7da38964e02fdc4f7551"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="trames_8h.html#a1872acbf581ad3e734cd5abd2950bdbb">LG_TRAME_CAPTEURS</a>&#160;&#160;&#160;21</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Longueur d'une trame capteurs.  <a href="#a1872acbf581ad3e734cd5abd2950bdbb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="trames_8h.html#a4ac2f0fe4a7dfc6dce56b5557fc50197">LG_MAX_TRAME_XBEE</a>&#160;&#160;&#160;30</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Longueur maximale d'une trame de communication XBee.  <a href="#a4ac2f0fe4a7dfc6dce56b5557fc50197"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="trames_8h.html#abdf0638fee09beccc2cc97b885245644">TYPE_TRAME_TELECOMMANDE</a>&#160;&#160;&#160;'@'</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Octet de type d'une trame télécommande.  <a href="#abdf0638fee09beccc2cc97b885245644"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="trames_8h.html#a0a202a14b2088928483ec60431adca08">LG_TRAME_TELECOMMANDE</a>&#160;&#160;&#160;10</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Longueur d'une trame télécommande.  <a href="#a0a202a14b2088928483ec60431adca08"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="trames_8h.html#a3da40c61be2985a1bd7c6782ae158821">TRAME_ERR_NOERR</a>&#160;&#160;&#160;0x00</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Aucune erreur ne s'est produite.  <a href="#a3da40c61be2985a1bd7c6782ae158821"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="trames_8h.html#afdc7aa34583f0f7b6631d7b3697b887d">TRAME_ERR_DEBUT</a>&#160;&#160;&#160;0x02</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Mauvais octet de départ.  <a href="#afdc7aa34583f0f7b6631d7b3697b887d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="trames_8h.html#ac5cdf218f2aacb64525d94990a4ff613">TRAME_ERR_TYPE</a>&#160;&#160;&#160;0x04</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Type de trame inconnu.  <a href="#ac5cdf218f2aacb64525d94990a4ff613"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="trames_8h.html#a6c564ba45a98da51b76fc1c75185b211">TRAME_ERR_CHECK</a>&#160;&#160;&#160;0x08</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Erreur de checksum.  <a href="#a6c564ba45a98da51b76fc1c75185b211"></a><br/></td></tr>
</table>
<hr/><h2>Documentation des macros</h2>
<a class="anchor" id="aa34f3db65e8e2285027433f0dec98a0d"></a><!-- doxytag: member="trames.h::DEBUT_TRAME" ref="aa34f3db65e8e2285027433f0dec98a0d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DEBUT_TRAME&#160;&#160;&#160;'@'</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Octet de départ d'une trame (carte capteurs ou communication XBee) </p>
<p>Toutes les trames de communication entre les différents modules du projet Drone (excepté l'IMU) sont composées d'un octet de départ, d'un octet de type, des données et d'un checksum : &lt;'@'&gt; &lt;type&gt; &lt;données...&gt; &lt;checksum&gt; 1 1 n 1 Le checksum est calculé en faisant la somme de tous les octets de la trame (hormis le dernier !) </p>

</div>
</div>
<a class="anchor" id="a4ac2f0fe4a7dfc6dce56b5557fc50197"></a><!-- doxytag: member="trames.h::LG_MAX_TRAME_XBEE" ref="a4ac2f0fe4a7dfc6dce56b5557fc50197" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LG_MAX_TRAME_XBEE&#160;&#160;&#160;30</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Longueur maximale d'une trame de communication XBee. </p>

</div>
</div>
<a class="anchor" id="a1872acbf581ad3e734cd5abd2950bdbb"></a><!-- doxytag: member="trames.h::LG_TRAME_CAPTEURS" ref="a1872acbf581ad3e734cd5abd2950bdbb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LG_TRAME_CAPTEURS&#160;&#160;&#160;21</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Longueur d'une trame capteurs. </p>

</div>
</div>
<a class="anchor" id="a0a202a14b2088928483ec60431adca08"></a><!-- doxytag: member="trames.h::LG_TRAME_TELECOMMANDE" ref="a0a202a14b2088928483ec60431adca08" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LG_TRAME_TELECOMMANDE&#160;&#160;&#160;10</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Longueur d'une trame télécommande. </p>

</div>
</div>
<a class="anchor" id="a6c564ba45a98da51b76fc1c75185b211"></a><!-- doxytag: member="trames.h::TRAME_ERR_CHECK" ref="a6c564ba45a98da51b76fc1c75185b211" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TRAME_ERR_CHECK&#160;&#160;&#160;0x08</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Erreur de checksum. </p>

</div>
</div>
<a class="anchor" id="afdc7aa34583f0f7b6631d7b3697b887d"></a><!-- doxytag: member="trames.h::TRAME_ERR_DEBUT" ref="afdc7aa34583f0f7b6631d7b3697b887d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TRAME_ERR_DEBUT&#160;&#160;&#160;0x02</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Mauvais octet de départ. </p>

</div>
</div>
<a class="anchor" id="a3da40c61be2985a1bd7c6782ae158821"></a><!-- doxytag: member="trames.h::TRAME_ERR_NOERR" ref="a3da40c61be2985a1bd7c6782ae158821" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TRAME_ERR_NOERR&#160;&#160;&#160;0x00</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Aucune erreur ne s'est produite. </p>

</div>
</div>
<a class="anchor" id="ac5cdf218f2aacb64525d94990a4ff613"></a><!-- doxytag: member="trames.h::TRAME_ERR_TYPE" ref="ac5cdf218f2aacb64525d94990a4ff613" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TRAME_ERR_TYPE&#160;&#160;&#160;0x04</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Type de trame inconnu. </p>

</div>
</div>
<a class="anchor" id="aff03fe72d1cd7da38964e02fdc4f7551"></a><!-- doxytag: member="trames.h::TYPE_TRAME_CAPTEURS" ref="aff03fe72d1cd7da38964e02fdc4f7551" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TYPE_TRAME_CAPTEURS&#160;&#160;&#160;'#'</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Octet de type d'une trame capteurs. </p>
<p>Une telle trame est construite de la façon suivante : &lt;'@'&gt; &lt;'#'&gt; &lt;GPSx:4&gt; &lt;GPSy:4&gt; &lt;GPSs:2&gt; &lt;GPSc:2&gt; &lt;Alt:2&gt; &lt;Vit:2&gt; &lt;Jauge:2&gt; &lt;Checksum&gt; -&gt; 21 octets </p>

</div>
</div>
<a class="anchor" id="abdf0638fee09beccc2cc97b885245644"></a><!-- doxytag: member="trames.h::TYPE_TRAME_TELECOMMANDE" ref="abdf0638fee09beccc2cc97b885245644" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TYPE_TRAME_TELECOMMANDE&#160;&#160;&#160;'@'</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Octet de type d'une trame télécommande. </p>
<p>Une telle trame est construite de la façon suivante : &lt;'@'&gt; &lt;'@'&gt; &lt;voie1:1&gt; &lt;voie2:1&gt; &lt;voie3:1&gt; &lt;voie4:1&gt; &lt;voie5:1&gt; &lt;voie6:1&gt; &lt;voie7:1&gt; &lt;Checksum&gt; -&gt; 10 octets </p>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Généré le Wed Jan 5 2011 17:04:29 pour Carte mère par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
